<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<tiles:insert template="../../templates/commonLayout.jsp">
	<tiles:put name="title" type="string">
	</tiles:put>
	<tiles:put name="body" type="string">
		<h1>
			<bean:message key="lang.consult.headtitle" />
		</h1>
		<table width="100%">
			<tr>
				<td>
					<table border="1" width="100%">
						<thead>
							<tr>
								<td align="center"><bean:message key="lang.common.headlabel.lang" /></td>
								<td align="center"><bean:message key="lang.common.headlabel.level" /></td>
								<td align="center"><bean:message key="lang.common.headlabel.practice" /></td>
								<td align="center"><bean:message key="lang.common.headlabel.comment" /></td>
								<td align="center"><bean:message key="lang.common.headlabel.action" /></td>
							</tr>
						</thead>
						<tbody>
							<logic:iterate name="langues" id="collaborateurLangueId">
								<tr>
									<td><bean:write name="collaborateurLangueId" property="langue.libelle" /></td>
									<td><bean:write name="collaborateurLangueId" property="niveau" /></td>
									<td><bean:write name="collaborateurLangueId" property="pratique" /></td>
									<td><bean:write name="collaborateurLangueId" property="commentaire" /></td>
									<td>
										<html:link
											action="/langue.do?methode=afficherModifierLangue&idLangue=${collaborateurLangueId.langue.id}"
											paramName="collaborateurLangueId" paramProperty="langue.id">Modifier
										</html:link> |
										<html:link
											action="/langue.do?methode=supprimerLangue&idLangue=${collaborateurLangueId.langue.id}"
											paramName="collaborateurLangueId" paramProperty="langue.id">Suprimer
										</html:link>
									</td>
								</tr>
							</logic:iterate>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<td colspan="3" align="center">
					<html:link action="/langue.do?methode=ajouterLangue">
						<bean:message key="lang.ajout.button.addlang" />
					</html:link>
				</td>
			</tr>
		</table>
			
		<script>
		  	<!-- $LAB.script("/local/plugin1.jquery.js"); -->
			<!-- var timeput=setTimeout("redirectionTo('http://www.google.com')",4000); -->
		</script>
	</tiles:put>
</tiles:insert>	